std::bitset::count
From Cppreference
| size_t count() const;
| ||
Returns the number of bits that are set to true.
Parameters
(none)
Return value
number of bits that are set to true.
See also
| returns the size number of bits that the bitset can hold (public member function) | |